rtty: update to 9.0.0
authorJianhui Zhao <[email protected]>
Tue, 8 Jul 2025 15:47:51 +0000 (23:47 +0800)
committerTianling Shen <[email protected]>
Wed, 9 Jul 2025 10:52:43 +0000 (18:52 +0800)
Two new command-line parameters have been added since this version:

* -g, --group=string       Set a group for the device
* -i number                Set heartbeat interval in seconds

changelog: https://github.com/zhaojh329/rtty/releases/tag/v9.0.0

Signed-off-by: Jianhui Zhao <[email protected]>
utils/rtty/Makefile
utils/rtty/files/rtty.config
utils/rtty/files/rtty.init

index 4f1b5cf1517364fb23cc7f6f0ff17af06ba13bd5..00c375673cf2e91b94efd1cb5bde6d4a05ed19ee 100644 (file)
@@ -8,12 +8,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=rtty
-PKG_VERSION:=8.1.5
+PKG_VERSION:=9.0.0
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL=https://github.com/zhaojh329/rtty/releases/download/v$(PKG_VERSION)
-PKG_HASH:=b10555e441741dad4baaa7366dfaeef81ea73dfd89fd7c478ecae1ceab74b56a
+PKG_HASH:=5137cbe2f58588851376f2e74ded7f570320bd7cfc437d47d2485fb4be5042a1
 
 PKG_MAINTAINER:=Jianhui Zhao <[email protected]>
 PKG_LICENSE:=MIT
index d7b83bd42d9a36e57a39130017d4f02d5b38c322..69d03eee8bff6e54bd9419459127c40aa425903a 100644 (file)
@@ -6,6 +6,7 @@
 #config rtty
 #   option  interface   'lan'
 #   option  id          'My-Device'
+#   option  group       'My-Group'
 #   option  description 'Description of my device'
 #   option  host        'your-server-host'  # Server host
 #   option  port        '5912'              # Server Port
@@ -13,4 +14,5 @@
 #   option  insecure    '1'                 # Allow insecure server connections when using SSL
 #   option  token       'your-token'        # generated by rttys
 #   option  username    'root'              # Skip a second login authentication. See man login(1) about the details
+#   option  heartbeat   '30'                # Heartbeat interval in seconds(Default is 30s)
 #   option  verbose     '1'                 # verbose log
index 4725cc158f5e0985de896332c52ec821e088c39b..dde37bd53e82d4af63f5026aaefcafd85b16e94f 100644 (file)
@@ -8,7 +8,8 @@ BIN=/usr/sbin/rtty
 validate_rtty_section() {
        uci_load_validate rtty rtty "$1" "$2" \
                'interface:uci("network", "@interface"):lan' \
-               'id:maxlength(63)' \
+               'id:maxlength(32)' \
+               'group:maxlength(16)' \
                'description:maxlength(126)' \
                'host:host' \
                'port:port' \
@@ -16,6 +17,7 @@ validate_rtty_section() {
                'insecure:bool:0' \
                'token:maxlength(32)' \
                'username:string' \
+               'heartbeat:uinteger' \
                'verbose:bool:0'
 }
 
@@ -47,12 +49,14 @@ start_rtty() {
 
        procd_open_instance
        procd_set_param command $BIN -h $host -I "$id" -a
+       [ -n "$group" ] && procd_append_param command -g "$group"
        [ -n "$port" ] && procd_append_param command -p "$port"
        [ -n "$description" ] && procd_append_param command -d "$description"
        [ "$ssl" = "1" ] && procd_append_param command -s
        [ "$insecure" = "1" ] && procd_append_param command -x
        [ -n "$token" ] && procd_append_param command -t "$token"
        [ -n "$username" ] && procd_append_param command -f "$username"
+       [ -n "$heartbeat" ] && procd_append_param command -i "$heartbeat"
        [ "$verbose" = "1" ] && procd_append_param command -v
        procd_set_param respawn
        procd_close_instance